﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DependencyInjectionExample
{
	//Interface 
	public class MainClass3 : IInjectDependency
	{
		private IDependentClass dependentClass;

		void IInjectDependency.InjectDependency(IDependentClass dependentClass)
		{
			this.dependentClass = dependentClass;
		}

		public void DoSomething()
		{
			dependentClass.DoSomethingInDependentClass();
		}
	}
}
